package com.zhss.ddd.order.domain.model;

import java.util.List;

/**
 * 订单聚合根
 */
public class Order {

    // 订单是实体，有唯一标识
    private OrderId orderId;
    // 放一堆订单的数据属性
    // 聚合你的订单条目
    private List<OrderItem> orderItems;

    public OrderId getOrderId() {
        return orderId;
    }

    public void setOrderId(OrderId orderId) {
        this.orderId = orderId;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }
}
